package com.cn.kabalifeuser.ui.service.activity;

import android.os.Bundle;
import android.widget.TextView;

import com.cn.kabalifeuser.R;
import com.cn.kabalifeuser.base.BasePresenter;
import com.cn.kabalifeuser.base.IBaseActivity;
import com.cn.kabalifeuser.config.LoginHelper;
import com.zzhoujay.richtext.RichText;

import butterknife.BindView;

/**
 * Created by 晓林 on 2020/9/14.
 * function: 富文本
 */
public class RichTextH5Activity extends IBaseActivity {


    Bundle bundle;
    String content;

    @BindView(R.id.tv_details)
    TextView tvDetails;

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_h5;
    }

    @Override
    public void initView(Bundle savedInstanceState) {
        super.initView(savedInstanceState);
        bundle = getIntent().getExtras();
        content = bundle.getString("content");
        setTitleBar("");
//        RichText.fromHtml(content).into(tvDetails);
        RichText.fromHtml(content).autoFix(false).showBorder(false).autoPlay(true).into(tvDetails);
    }
}
